import { createRouter, createWebHistory } from 'vue-router'
import Workbench from '../views/Workbench.vue'
import PlantingArea from '../views/dashboard/PlantingArea.vue'
import SubsidyOverview from '../views/dashboard/SubsidyOverview.vue'
import UrbanBase from '../views/dashboard/UrbanBase.vue'
import LargeScreen from '../views/dashboard/LargeScreen.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/workbench'
    },
    {
      path: '/workbench',
      name: 'workbench',
      component: Workbench
    },
    {
      path: '/dashboard/planting-area',
      name: 'planting-area',
      component: PlantingArea
    },
    {
      path: '/dashboard/subsidy-overview',
      name: 'subsidy-overview',
      component: SubsidyOverview
    },
    {
      path: '/dashboard/urban-base',
      name: 'urban-base',
      component: UrbanBase
    },
    {
      path: '/dashboard/large-screen',
      name: 'large-screen',
      component: LargeScreen
    }
  ],
})

export default router
